package com.zking.web.ZC;

import com.zking.dao.domain.Patient;
import com.zking.dao.domain.Register;
import com.zking.service.RegisterService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith (SpringRunner.class)
@SpringBootTest
public class MapperTset {
    @Autowired
    RegisterService registerService;
    @Test
    public  void mapper(){
        Patient p = new Patient();
        p.setId(1);
        List<Register> registers = registerService.queryAllRegisterByPid(p);
        System.out.println(registers);
    }
}
